package com.admin.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.admin.service.TypeService;
import com.bean.Type;
@Controller
public class TypeController {
	@Autowired
    private TypeService typeService;
	@RequestMapping("/AdminInsertType")
    public String AdminInsertType(Type type,Model model) {
    	return typeService.AdminInsertType(type,model);
	}
    @RequestMapping("/AdminDeleteType")
    public String AdminDeleteType(Type type,Model model) {
    	return typeService.AdminDeleteType(type,model);
	}
    @RequestMapping("/AdminSelectType")
    public String AdminSelectType(Type type,Model model) {
    	return typeService.AdminSelectType(model);
	}
    @RequestMapping("/AdminSelectType1")
    public String AdminSelectType1(Model model) {
    	return typeService.AdminSelectType1(model);
	}
    
}
